package com.ziyucoding.springboot.labs.lab3.sca.rocketmqdemo.dtd.order.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ziyucoding.springboot.labs.lab3.sca.rocketmqdemo.dtd.order.dataobject.TransactionLog;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 事务日志 Mapper
 *
 * @author ziyucoding
 * @date 2023-04-02
 **/
@Repository
public interface TransactionLogMapper extends BaseMapper<TransactionLog> {

    default Long selectCountById(@Param("id") String id) {
        return selectCount(new QueryWrapper<TransactionLog>().eq("id", id));
    }

}
